﻿using PLCLib.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PLCLib.Model
{
    internal class ModbusResult : IPlcResult
    {
        public Command Command { get; set; }

        public object Content { get; set; }

        public bool Success { get; set; }

        public string Message { get; set; }

        public Exception Exception { get; set; }

        public byte[] ReceiveBuffer { get; set; }
    }

    public class ModbusResult<T> : IPlcResult<T>
    {
        public Command Command { get; set; }

        public T Content { get; set; }

        public bool Success { get; set; }

        public string Message { get; set; }

        public Exception Exception { get; set; }

        public byte[] ReceiveBuffer { get; set; }
    }
}
